import React from 'react';
import { NavLink } from 'react-router-dom';
import './heade.css';
const heade = () => {
  return (
    <header>
      <nav>
        <NavLink to="/" className="link" exact activeClassName="link-active">
          首页
        </NavLink>
        <NavLink to="/news" className="link" activeClassName="link-active">
          新闻
        </NavLink>
        <NavLink to="/login" className="link" activeClassName="link-active">
          登录
        </NavLink>
      </nav>
    </header>
  );
};

export default heade;
